Optimal. Leaf size=60 \[ -\frac {b d n}{4 x^2}-\frac {b e n}{x}+\frac {b e^2 n \log (x)}{2 d}-\frac {(d+e x)^2 \left (a+b \log \left (c x^n\right )\right )}{2 d x^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 60, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.210, Rules used = {37, 2372, 12,
45} \begin {gather*} -\frac {(d+e x)^2 \left (a+b \log \left (c x^n\right )\right )}{2 d x^2}+\frac {b e^2 n \log (x)}{2 d}-\frac {b d n}{4 x^2}-\frac {b e n}{x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 37
Rule 45
Rule 2372
Rubi steps
\begin {align*} \int \frac {(d+e x) \left (a+b \log \left (c x^n\right )\right )}{x^3} \, dx &=-\frac {(d+e x)^2 \left (a+b \log \left (c x^n\right )\right )}{2 d x^2}-(b n) \int -\frac {(d+e x)^2}{2 d x^3} \, dx\\ &=-\frac {(d+e x)^2 \left (a+b \log \left (c x^n\right )\right )}{2 d x^2}+\frac {(b n) \int \frac {(d+e x)^2}{x^3} \, dx}{2 d}\\ &=-\frac {(d+e x)^2 \left (a+b \log \left (c x^n\right )\right )}{2 d x^2}+\frac {(b n) \int \left (\frac {d^2}{x^3}+\frac {2 d e}{x^2}+\frac {e^2}{x}\right ) \, dx}{2 d}\\ &=-\frac {b d n}{4 x^2}-\frac {b e n}{x}+\frac {b e^2 n \log (x)}{2 d}-\frac {(d+e x)^2 \left (a+b \log \left (c x^n\right )\right )}{2 d x^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 41, normalized size = 0.68 \begin {gather*} -\frac {2 a (d+2 e x)+b n (d+4 e x)+2 b (d+2 e x) \log \left (c x^n\right )}{4 x^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
3.
time = 0.06, size = 232, normalized size = 3.87
method | result | size |
risch | \(-\frac {b \left (2 e x +d \right ) \ln \left (x^{n}\right )}{2 x^{2}}-\frac {-2 i \pi b e x \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )+2 i \pi b e x \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}+2 i \pi b e x \,\mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}-2 i \pi b e x \mathrm {csgn}\left (i c \,x^{n}\right )^{3}+4 \ln \left (c \right ) b e x +4 b e n x +4 a e x -i \pi b d \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )+i \pi b d \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}+i \pi b d \,\mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}-i \pi b d \mathrm {csgn}\left (i c \,x^{n}\right )^{3}+2 d b \ln \left (c \right )+b d n +2 a d}{4 x^{2}}\) | \(232\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.27, size = 60, normalized size = 1.00 \begin {gather*} -\frac {b n e}{x} - \frac {b e \log \left (c x^{n}\right )}{x} - \frac {b d n}{4 \, x^{2}} - \frac {a e}{x} - \frac {b d \log \left (c x^{n}\right )}{2 \, x^{2}} - \frac {a d}{2 \, x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.39, size = 54, normalized size = 0.90 \begin {gather*} -\frac {b d n + 4 \, {\left (b n + a\right )} x e + 2 \, a d + 2 \, {\left (2 \, b x e + b d\right )} \log \left (c\right ) + 2 \, {\left (2 \, b n x e + b d n\right )} \log \left (x\right )}{4 \, x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.27, size = 58, normalized size = 0.97 \begin {gather*} - \frac {a d}{2 x^{2}} - \frac {a e}{x} - \frac {b d n}{4 x^{2}} - \frac {b d \log {\left (c x^{n} \right )}}{2 x^{2}} - \frac {b e n}{x} - \frac {b e \log {\left (c x^{n} \right )}}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 2.36, size = 57, normalized size = 0.95 \begin {gather*} -\frac {4 \, b n x e \log \left (x\right ) + 4 \, b n x e + 4 \, b x e \log \left (c\right ) + 2 \, b d n \log \left (x\right ) + b d n + 4 \, a x e + 2 \, b d \log \left (c\right ) + 2 \, a d}{4 \, x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 3.70, size = 47, normalized size = 0.78 \begin {gather*} -\frac {a\,d+x\,\left (2\,a\,e+2\,b\,e\,n\right )+\frac {b\,d\,n}{2}}{2\,x^2}-\frac {\ln \left (c\,x^n\right )\,\left (\frac {b\,d}{2}+b\,e\,x\right )}{x^2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________